<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-right">
							<button class="btn btn-white" onclick="ref()">重置</button>
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<form id="search">
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编号：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="columnId" type="text" class="form-control"
										   placeholder="编号">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;归属表编号：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="tableId" type="text" class="form-control"
										   placeholder="归属表编号">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;列名称：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="columnName" type="text" class="form-control"
										   placeholder="列名称">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;列描述：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="columnComment" type="text" class="form-control"
										   placeholder="列描述">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;列类型：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="columnType" type="text" class="form-control"
										   placeholder="列类型">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JAVA类型：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="javaType" type="text" class="form-control"
										   placeholder="JAVA类型">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JAVA字段名：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="javaField" type="text" class="form-control"
										   placeholder="JAVA字段名">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否主键（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isPk" type="text" class="form-control"
										   placeholder="是否主键（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否自增（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isIncrement" type="text" class="form-control"
										   placeholder="是否自增（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否必填（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isRequired" type="text" class="form-control"
										   placeholder="是否必填（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否为插入字段（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isInsert" type="text" class="form-control"
										   placeholder="是否为插入字段（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否编辑字段（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isEdit" type="text" class="form-control"
										   placeholder="是否编辑字段（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否列表字段（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isList" type="text" class="form-control"
										   placeholder="是否列表字段（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否查询字段（1是）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="isQuery" type="text" class="form-control"
										   placeholder="是否查询字段（1是）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查询方式（等于、不等于、大于、小于、范围）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="queryType" type="text" class="form-control"
										   placeholder="查询方式（等于、不等于、大于、小于、范围）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="htmlType" type="text" class="form-control"
										   placeholder="显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;字典类型：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="dictType" type="text" class="form-control"
										   placeholder="字典类型">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;排序：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="sort" type="text" class="form-control"
										   placeholder="排序">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建者：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="createBy" type="text" class="form-control"
										   placeholder="创建者">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建时间：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="createTime" type="text" class="form-control"
										   placeholder="创建时间">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更新者：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="updateBy" type="text" class="form-control"
										   placeholder="更新者">
								</div>
															<div class="columns pull-left nopadding">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;更新时间：
								</div>
								<div class="columns pull-left col-md-1 nopadding">
									<input id="updateTime" type="text" class="form-control"
										   placeholder="更新时间">
								</div>
													</form>
					</div>

					<hr/>
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="common:genTableColumn:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
							<button shiro:hasPermission="common:genTableColumn:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
							<button shiro:hasPermission="common:genTableColumn:add" type="button" class="btn  btn-warning"
									onclick="exportColumn()">
								导出
							</button>
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="common:genTableColumn:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="common:genTableColumn:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="common:genTableColumn:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" >
		document.write("<script type='text/javascript' src='/js/appjs/common/genTableColumn/genTableColumn.js?r="+Math.random()+"'></s"+"cript>");
	</script>
	<script type="text/javascript" >
		document.write("<script type='text/javascript' src='/js/appjs/common/genTableColumn/common.js?r="+Math.random()+"'></s"+"cript>");
	</script>
</body>
</html>